package com.slsoft.core.action;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
//简化公用页面跳转
@Controller
public class CommonController {
	//@RequestMapping("/nav/{module}/{page}")为了全安考虑放弃直接跳转到某个模块下具体页面
	@RequestMapping("/nav/{page}")
	public String nav(@PathVariable String page, HttpServletRequest request) throws IOException {
		return "/common/"+ page;
	}
	
}

